home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 1998 August / PC Plus SuperCD 50a Issue 142 (CD142a) (August 1998).iso / full / jbuild / setup / JBuilder / jsamples.z / Container8.java < prev    next >
Encoding:
Java Source  |  1997-08-11  |  389 b   |  19 lines

  1. // Copyright(c) 1996,1997 ObjectSpace, Inc.
  2. import COM.objectspace.jgl.*;
  3.  
  4. public class Container8
  5.   {
  6.   public static void main( String[] args )
  7.     {
  8.     Array array = new Array();
  9.     try
  10.       {
  11.       Object object = array.front();
  12.       }
  13.     catch ( InvalidOperationException exception )
  14.       {
  15.       System.out.println( "Caught " + exception );
  16.       }
  17.     }
  18.   }
  19.